/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package simulado;

import javax.swing.JOptionPane;

/**
 *
 * @author Gustavo
 */
public class sumulado {

    public static void main(String[] args) {
        ControleUser c = new ControleUser();
        boolean inicia = true;
        int cont = 1;
        while (inicia != false) {
            String nome = JOptionPane.showInputDialog("Usuario");
            String senha = JOptionPane.showInputDialog("Senha");

            String msn = c.carregarUser(nome, senha, cont);
            cont++;
            String sair = JOptionPane.showInputDialog(msn + "\nFinalizar sistema [SIM] [NÃO]");
            if (sair.equalsIgnoreCase("sim")) {
                inicia = false;
            }
        }
    }

}
